package pers.amos.edu.exception;

/**
 * @author amos wong
 * @create 2020-02-01 18:30
 */



public enum ExceptionEnum {
    SYSTEM_ERROR(500, "系统繁忙，请稍后再试!"),
    NOT_FOUND(404, "您查找的内容不存在"),
    INVALID_PARAMS(400, "无效的请求参数"),
    CODE_INVALID(500, "授权码错误"),
    DECODE_ERROR(500, "解密错误"),
    COLLECTION_ERROR(500, "最多收藏30个学校或专业"),





    ;
    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
